﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WFL.Wrapper.Highcharts
{
    public class ChartObject : JsonObject
    {
        public string Type
        {
            get { return (string)this["type"]; }
            set { this["type"] = value; }
        }

        public string PlotBackgroundColor
        {
            get { return (string)this["plotBackgroundColor"]; }
            set { this["plotBackgroundColor"] = value; }
        }

        public int PlotBorderWidth
        {
            get { return GetValue<int>("plotBorderWidth"); }
            set { this["plotBorderWidth"] = value; }
        }

        public bool PlotShadow
        {
            get { return GetValue<bool>("plotShadow"); }
            set { this["plotShadow"] = value; }
        }

        public ChartObject()
        {
            
        }

        public ChartObject(string type)
        {
            Type = type;
        }
    }
}
